package com.example.demoes.service;

import com.example.demoes.entity.OmsOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.data.domain.Page;
import org.springframework.data.elasticsearch.core.SearchHit;

import java.util.List;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author rosszhang
 * @since 2023-12-09
 */
public interface OmsOrderService extends IService<OmsOrder> {


    List<OmsOrder> getEsList();


    /**
     * 从Es中查询
     * @param memberUsername 用户帐号
     * @return
     */
    List<OmsOrder> getEs(String memberUsername);

    Page<OmsOrder> getEsQuery(String memberUsername);

    /**
     * 根据主键ID删除
     * @param id
     * @return
     */
    void deletedEsById(Long id);

    /**
     * 统计总数
     * @return
     */
    long countEs();



}
